package com.sunfeng.commonlib.image;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

/**
 * 图片加载管理类
 * Created by wutiaorong on 2017/10/19.
 */

public class ImageLoader {
    public static void loadImageFromWeb(Context context, String url, ImageView view){
        Glide.with(context).load(url).skipMemoryCache(true).crossFade().into(view);
    }
    public static void loadImageFromWeb(Context context, String url, ImageView view,int placeHolderId){
        Glide.with(context).load(url).skipMemoryCache(true).crossFade().placeholder(placeHolderId).into(view);
    }
}
